Entry Order Dialog has next controls:
Account
This is a combo box that allows selecting one of user's accounts. In initial state it is the account from selected row in table of Accounts window. If there is no selected row, it is first account in table. There're all accounts in popup list. If there're accounts under margin call, their ids are shown with Gray foreground color. If such account is selected, text of combo box is shown with Gray foreground color too. Also the button OK becomes disabled. When account not under margin call is selected, text of combo box is shown with Black foreground color. Also the button OK becomes enabled if others controls permit that and the dialog is not disabled consider application state.
Currency
This is a combo box that allows selecting one of currency pair. In initial state it is the currency from selected row in table of Dealing Rates window. If there is no selected row, it is currency of first row in table. There're all currencies in popup list. If there're not tradable currencies, their titles are shown with Gray foreground color. If such currency is selected, text of combo box is shown with Gray foreground color too. Also the button OK becomes disabled. When tradable currency is selected, text of combo box is shown with Black foreground color. Also the button OK becomes enabled if others controls permit that and the dialog is not disabled consider application state.
Buy/Sell
This is a combo box that allows selecting one of two operation Sides: BUY and SELL. In initial state it depends how action is performed, which have shown dialog. If action not specifies Side it is BUY side
This is a combo box that allows selecting how many lots (contract size) will be amount of order. In initial state it is the lot size for currency specified for Currency combo box. There're ten amounts in popup list, which ones are calculated from 1 lot to 10 lots with step in 1 lot. User can edit selected value manually but he can't input value is not divisible by lot.
This is spin box that allows entering the stop or limit rate of order. User can do it manually or using spins buttons. Initially value is set to price of initially specified currency. All number values are allowing excepting equals current price or negative, therefore if value reach 0 by using down spin button, it initiates to price of selected currency again.
Order type.Stop
This is not editable text field, that shows condition, when the order is type of Stop. The Stop order is an order, that owner want to open position when price of ordered currency will grown up to specified rate for Buy side or fall down to specified rate for Sell side. The value of current price placed in the left side of logical expression equals price of selected currency + one pip for Buy side and - one pip for Sell side. This value is changed when price of selected currency is changed or currency is changed or side is changed.
Order type.Limit
This is not editable text field, that shows condition, when the order is type of Limit. The Limit order is an order, that owner want to open position when price of ordered currency will full down to specified rate for Buy side or grown down to specified rate for Sell side. The value of current price placed in the left side of logical expression equals price of selected currency + one pip for Sell side and - one pip for Buy side. This value is changed when price of selected currency is changed or currency is changed or side is changed.
There're two buttons:
Ok
Is disabled in next cases:
When the button is pressed the Entry Order is created and transmitted to server. But dialog has closed immediately after button is clicked.
As soon as server has admitted order, the order appears in table of Orders window with "Waiting" state. In status column the type SE is shown for Stop Order and LE for Limit Order As soon as price of selected satisfies specified condition, server opens position by that order, the order is removed from table of Orders window and open position is added to table of Open position window.
Cancel
Just hides Entry Order dialog.